package com.ss.android.account.v2.c;

import android.content.Context;
import com.ss.android.account.b.ContactsAppData;
import com.ss.android.account.bb;
import com.ss.android.account.bus.event.g;
import com.ss.android.common.app.permission.PermissionsResultAction;
import com.ss.android.messagebus.SubscriptionRouter;

final class c extends PermissionsResultAction {
    private final a c;
    private final String a;
    private static com.ss.android.account.b.k.k$a b;

    c(a arg1, String arg2, com.ss.android.account.b.k.k$a arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onGranted() {
        Context v0 = this.c.b;
        if(v0 != null) {
            com.bytedance.common.utility.b.a.a(new ContactsAppData(v0.getApplicationContext(), bb.a().c()), new Void[0]);
        }

        this.c.a(this.a, this.b);
        SubscriptionRouter.c(new g());
    }

    public final void onDenied(String arg4) {
        this.c.a(this.a, this.b);
        SubscriptionRouter.c(new g());
    }
}

